import request from '../utils/request'

// 创建组
export function createGroup(args) {
  const { groupName, imagePath, folders, members, setTime, creater, username } = args

  return request({
    url: '/group/create',
    method: 'post',
    data: {
      groupName,
      imagePath,
      folders,
      members,
      setTime,
      creater,
      username
    }
  })
}

// 获取所有组信息
export function getList(username) {
  return request({
    url: '/group/getList',
    method: 'post',
    data: {
      username
    }
  })
}
